//
//  MLIMoreVC.m
//  BaseProject
//
//  Created by mac on 2021/1/11.
//  Copyright © 2021 王洋. All rights reserved.
//

#import "MLIMoreVC.h"

@interface MLIMoreVC ()
@property(nonatomic,strong)UIScrollView *mainView;
@end

@implementation MLIMoreVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationController.navigationBarHidden = YES;
    #if RT_INTERACTIVE_PUSH
        self.rt_navigationController.rt_enableInteractivePush = YES;
    #endif
    [self createNaviBarWithTitle:@"理赔流程" backButtonBlock:nil];
    
    UIImageView *iv = [[UIImageView alloc]initWithFrame:CGRectMake(14*ADAPTER_WIDTH, 14*ADAPTER_WIDTH, WIDTH - 28*ADAPTER_WIDTH, 872*ADAPTER_WIDTH)];
    [self.mainView addSubview:iv];
    iv.image = [UIImage getPNGimageInBundleWithName:@"MLI_Segement_2_2"];
    
    self.mainView.contentSize = CGSizeMake(0, MAX(self.mainView.height + 1, iv.bottom + kBottomSafeHeight + 20*ADAPTER_WIDTH));
}
#pragma mark - lazy懒加载
- (UIScrollView *)mainView
{
    if (!_mainView) {
        UIScrollView *view = [[UIScrollView alloc]initWithFrame:CGRectMake(0, kTopHeight, WIDTH, HEIGHT - kTopHeight)];
        [self.view addSubview:view];
        view.backgroundColor = kBGDarkColor;
        if (@available(iOS 11.0, *))
        {
            view.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
        }
        else
        {
            self.automaticallyAdjustsScrollViewInsets = NO;
        }
        _mainView = view;
    }
    return _mainView;
}
@end
